import org.htmlparser.Parser;
import org.htmlparser.util.NodeList;
import org.htmlparser.util.ParserException;

public class RDFaReader {
    public static void main (String[] args) {
	    if (args == null || args.length == 0) {
		   System.out.println("Usage: ...");
		   System.exit(1); 
		}
	    
	    System.out.println("Starting to parse " + args[0]);
        
	    try {
            Parser parser = new Parser (args[0]);
            NodeList list = parser.parse (null);
            System.out.println (list.toHtml ());
        } catch (ParserException pe) {
            pe.printStackTrace ();
        }
    }
}
